﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JeanFish.Blog.Storage
{
    public sealed class Blog:BlogBase
    {
        public string ID { get { return this._id; } set { this._id = value; } }
        public string Name { get { return this._name; } set { this._name = value; } }
        public string Onwer { get { return this._onwer; } set { this._onwer = value; } }
        public sealed override void AcceptChanges()
        {
            base.AcceptChanges();
        }
        public static implicit operator Blog(Business.Blog blog)
        {
            var b = new Blog();
            b.Copy(blog);
            return b;
        }

        protected async override Task<SavedResult> SaveAsync()
        {
            return await Task.FromResult(SavedResult.OK);
        }
    }
}
